//
//  HYUserModel.h
//  Agency
//
//  Created by 胡勇 on 2017/11/2.
//  Copyright © 2017年 胡勇. All rights reserved.
//

#import <UIKit/UIKit.h>

@interface HYUserInfo : NSObject <NSCoding>
@property (nonatomic, copy) NSString    *phone;
@property (nonatomic, copy) NSArray     *roles;
@property (nonatomic, copy) NSString    *loginName;
@property (nonatomic, copy) NSString    *realName;
@property (nonatomic, copy) NSArray     *resources;
@property (nonatomic, copy) NSString    *id;
@property (nonatomic, copy) NSString    *orgId;
@property (nonatomic, copy) NSString    *passWord;
@property (nonatomic, copy) NSString    *userType;
@end

@interface HYUserModel : NSObject <NSCoding>

/** token */
@property (nonatomic,strong) NSDictionary *token;
/** userinfo */
@property (nonatomic,strong) HYUserInfo *user;

+ (instancetype)sharedInstance;

- (void)logout;

@end


